package com.hadluo.qq.client.event;


import com.hadluo.qq.client.model.GroupMessage;
import com.hadluo.qq.client.model.Message;
import lombok.Data;

/**
 * 消息事件类
 * @author hadluo
 */

@Data
public class MessageEvent {
    private String type = "MESSAGE";
    private Message message;

    private GroupMessage groupMessage;
    public MessageEvent() {}

    public MessageEvent(Message message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }
}